package zju.ccnt.oauth2.user.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
import zju.ccnt.exception.BaseWebApplicationException;

/**
 * Created by zha on 14/11/5.
 */
@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "Target user is not found")
public class InvalidUserException extends BaseWebApplicationException {
    public InvalidUserException(String name) {
        super(HttpStatus.BAD_REQUEST, "user " + name + " was not found.");
    }
}
